//
//  CoachVideoCell.m
//  CoollangTennisBall
//
//  Created by Coollang on 2017/8/26.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import "CoachVideoCell.h"
#import <SDWebImage/UIImageView+WebCache.h>
#import "CoachVideo.h"

@interface CoachVideoCell ()
@property (weak, nonatomic) IBOutlet UIImageView *preview;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *durationLabel;

@end

@implementation CoachVideoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)configureCoachVideo:(CoachVideo *)video {
    
    [self.preview sd_setImageWithURL:[NSURL URLWithString:video.preview]];
    self.nameLabel.text = video.name;
    self.durationLabel.text = video.duration;
}

@end
